package com.example.nacosconsumer;


import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

//表明远程调用的是哪个微服务
@FeignClient("nacos-UserService")
@Component
public interface ProviderService {
    @LoadBalanced
    @PostMapping("/updateHeadshotPath")
    String updateHeadshotPath(@RequestParam(value = "userName") String userName, @RequestBody String headshotPath);
}
